<template>
  <view class="head" :style="{backgroundColor:color}">
  <view class="heard_word">
    {{title}}
  </view>
  </view>
</template>
<script>
  export default {
  	data() {
  		return {
  			
  		};
  	},
    props:['title' ,'color']
  }
  
</script>
<style lang="scss" scoped>
  .head{
    position: fixed;
    width: 100%;
    // margin-top: calc( var(--status-bar-height));
    height: calc(88rpx + var(--status-bar-height));
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 999;
  }
  .heard_word{
    font-size: 36rpx;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #333333;
    margin-bottom: 21rpx;
  }
</style>
